home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr39 / kagold.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-06-17  |  7KB  |  147 lines

  1. echo off
  2. rem  Automatic Installation routine.  Requires two parameters:
  3. rem  1: the source drive (the one with the KaGOLD Testdrive files)
  4. rem  2: the target drive (where the program will be installed)
  5. rem  The target must have at least 360K free for the main program and
  6. rem  an additional 250K for the help system. A 720-K floppy or a hard
  7. rem  disk is recommended to allow all files to be installed.
  8. cls
  9. ECHO  ┌───────────────────────────────────────────────┐
  10. echo  │  To Run KAGOLD you must have April 1992 ROMS  │
  11. echo  │  e.g. Ver 5.0 for  KAM, and  KPC units        │
  12. echo  │  The Data Engine requires a special version   │
  13. echo  │  of KaGOLD/de and version 2.0 ROMS            │
  14. echo  │                                               │
  15. ECHO  │           Interflex Systems Design            │
  16. echo  │             Post Office Box 6418              │
  17. echo  │         Laguna Niguel, CA 92607-6418          │
  18. echo  │                                               │
  19. echo  │    VISA & MasterCard orders: (714) 496-6639   │
  20. echo  └───────────────────────────────────────────────┘
  21. if t%1==t goto noparm
  22. if t%2==t goto noparm
  23. if t%1==t%2 goto samedrive
  24. Goto Install
  25. echo Found %1
  26. rem ------------- No parameters given to install
  27. :noparm
  28. echo  ┌───────────────────────────────────────────────────────────────────┐
  29. echo  │ Type INSTALL x: y:       e.g.  INSTALL A: C: (drive letters only) │
  30. echo  │                                                                   │
  31. echo  │ where x: is the source drive (the one with Kagold Test Drive)     │
  32. echo  │   and y: is the target drive, where you want to put the program.  │
  33. echo  └───────────────────────────────────────────────────────────────────┘
  34. goto done
  35. rem ------------- User used same drive letters
  36. :samedrive
  37. echo ┌───────────────────────────────────────────────────────────┐
  38. echo │ The Source drive must be different from the Target drive. │
  39. echo │                                                           │
  40. echo │    e.g.  INSTALL A: D:                                    │
  41. echo └───────────────────────────────────────────────────────────┘
  42. goto done
  43. :install
  44. if not exist %1tdsfx.exe goto baddisk
  45. echo  ┌─────────────────────────────────────────────────────────────┐
  46. echo  │  o    Installing from "%1" to "%2"                          │
  47. echo  │                                                             │
  48. echo  │  o    A subdirectory named "TESTDRIV" will be created       │
  49. echo  │                                                             │
  50. echo  │  o    If this is okay, hit [enter]. To cancel installation  │
  51. echo  │       at this point, use Ctrl-C.                            │
  52. echo  └─────────────────────────────────────────────────────────────┘
  53. ECHO.
  54. pause
  55. ECHO.
  56. %2
  57. cd\
  58. md TestDriv > nul
  59. cd TestDriv > nul
  60. if not exist Kademo.exe goto newdir
  61. ECHO.
  62. echo    It appears that a version of KaDEMO already exists in the
  63. echo    directory "%2\testdriv"
  64. ECHO.
  65. echo    You can install this version "on top" of the existing version
  66. echo    by hitting any key, or you can use Control-Break to stop the
  67. echo    installation and manually delete the existing KaDEMO files.
  68. echo    Or you could install to a different drive letter.
  69. ECHO.
  70. echo    Suggestion: Go ahead and let this install into the testdrive
  71. echo    directory by hitting any key.
  72. ECHO.
  73. pause
  74. echo y|del *.* > nul
  75. ECHO.
  76. :NEWDIR
  77. echo  ┌────────────────────────────────────────────────────────────┐
  78. echo  │   Now unpacking the KaDEMO program and support files....   │
  79. echo  └────────────────────────────────────────────────────────────┘
  80. ECHO.
  81. %1tdsfx
  82. if not exist Kademo.exe goto noinstall
  83. echo  ┌────────────────────────────────────────────────────────────┐
  84. echo  │   Now unpacking the KaGOLD Help system...                  │
  85. echo  └────────────────────────────────────────────────────────────┘
  86. ECHO.
  87. %1tdhlpsfx
  88. echo  ┌────────────────────────────────────────────────────────────┐
  89. echo  │   Now unpacking some useful Docfiles...                    │
  90. echo  └────────────────────────────────────────────────────────────┘
  91. ECHO.
  92. %1docfiles
  93. if exist Kademo.HLP goto ALLOK
  94. echo  ┌────────────────────────────────────────────────────────────┐
  95. echo  │ HELP system not installed. Not enough room (needs 200K+)   │
  96. echo  └────────────────────────────────────────────────────────────┘
  97. :ALLOK
  98. CLS
  99. ECHO.
  100. ECHO.
  101. echo  ┌───────────────────────────────────────────────────────────────╖
  102. echo  │   You may now run the program by typing KaDEMO [enter]        ║
  103. rem
  104. if NOT exist Kademo.hlp goto skiphelp
  105. rem
  106. echo  │   Use [F1] for online help while program is running.          ║
  107. echo  │                                                               ║
  108. echo  │   The help system has information on TNC setup and other      ║
  109. echo  │   subjects. You can use the HELP system by itself by          ║
  110. echo  │   starting the program with the "/H" option, e.g. KaDEMO/H    ║
  111. :skiphelp
  112. echo  │                                                               ║
  113. echo  │   Type HELP (a batch file) to see some other documentation.   ║
  114. echo  │   Also: Look at the various .DOC files on the disk.           ║
  115. echo  │                                                               ║
  116. echo  │   73, de Jeff WA4EGT -- InterFlex Systems -- (714) 496-6639   ║
  117. echo  ╘═══════════════════════════════════════════════════════════════╝
  118. ECHO.
  119. ECHO    Type KaDEMO or KaGOLD to start the TestDrive program.
  120. ECHO.
  121. goto done
  122. rem Bad Installation
  123. :noinstall
  124. cls
  125. echo ┌───────────────────────────────────────────────────────────────┐
  126. echo │ Sorry, but either no room on target, or you didn't specify    │
  127. echo │ the drives correctly, the Testdrive disk is not in "%2"       │
  128. echo │ or some other problem.  Please insert your TestDrive disk in  │
  129. echo │ some floppy drive, and try again.                             │
  130. echo └───────────────────────────────────────────────────────────────┘
  131. ECHO.
  132. goto done
  133. :baddisk
  134. ECHO.
  135. ECHO.
  136. echo  ┌──────────────────────────────────────────────────────────────┐
  137. echo  │                                                              │
  138. echo  │          TDSFX.EXE is not on the %1 drive.                   │
  139. echo  │          Please insert the disk, or be sure that the         │
  140. echo  │          test drive files are on the source disk.            │
  141. echo  │                                                              │
  142. echo  └──────────────────────────────────────────────────────────────┘
  143. ECHO.
  144. rem Program Ends here
  145. :done
  146. ECHO Read any messages on this screen then
  147. pause